package com.wv.api.server.system;

import com.wv.api.service.ISysDeptService;
import com.wv.common.result.PageResponseResult;
import com.wv.model.system.condition.SysDeptCondition;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "部门管理相关接口")
@RequestMapping("/dept")
public class SysDeptController {

    @Autowired
    private ISysDeptService iSysDeptService;

    @RequestMapping(method = RequestMethod.GET)
    @ApiOperation(value = "获取部门列表")
    public PageResponseResult get(SysDeptCondition sysDeptCondition) {
        return iSysDeptService.getDeptList(sysDeptCondition);
    }
}
